//
//  AssortViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/3/3.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "AssortViewController.h"

#import "PeiTaoViewController.h"
@interface AssortViewController ()

@end

@implementation AssortViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = BgColor;
 
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [UIColor whiteColor];

    btn.frame = CGRectMake(0, 2, B_WIDTH, 50);
    [btn setTitle:@"     认购" forState:0];
    [btn setImage:[UIImage imageNamed:@"rengou"] forState:0];
    btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;//左对齐
    [btn setImageEdgeInsets:UIEdgeInsetsMake(5, 10, 5, 100)];
    [btn setTitleColor:[UIColor colorWithHexString:@"#ff8300"] forState:0];
    btn.titleLabel.font = [UIFont systemFontOfSize:14];
    [btn addTarget:self action:@selector(BtnClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
   
}

-(void)BtnClick:(UIButton *)btn
{
    PeiTaoViewController *peiVC = [[PeiTaoViewController alloc] init];
    [self.navigationController pushViewController:peiVC animated:NO];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
